package com.book.warehouse.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.book.common.entity.QueryRequest;
import com.book.warehouse.entity.WarehouseHouseBook;
import com.book.warehouse.mapper.WarehouseHouseBookMapper;
import com.book.warehouse.service.WarehouseHouseBookService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * @Author: 刘恬镯
 * @Description:  20174052
 */

@Service
public class WarehouseHouseBookServiceImpl extends ServiceImpl<WarehouseHouseBookMapper, WarehouseHouseBook> implements WarehouseHouseBookService {
    @Autowired
    WarehouseHouseBookMapper warehouseHouseBookMapper;

    @Override
    public List<WarehouseHouseBook> wareList(Integer houseid) {
        return warehouseHouseBookMapper.wareList(houseid);
    }


    @Override
    public void addWarehouseHouseBook(WarehouseHouseBook warehouseHouseBook) {
        this.save(warehouseHouseBook);
    }

    @Override
    public void updateWarehouseHouseBook(WarehouseHouseBook warehouseHouseBook) {
        this.saveOrUpdate(warehouseHouseBook);
    }
}
